package com.zheng.rpc.registry;

import com.zheng.rpc.extensions.SPI;

import java.net.InetSocketAddress;

@SPI
public interface ServiceDiscovery {
    /**
     *  通过serviceName查找服务
     * @param serviceName
     * @return
     */
    InetSocketAddress lookupService(String serviceName);
}
